package com.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("emp")
public class Emp {
    @TableId
    private int empno;
    private String ename;
//    @TableField(value = "salary")
//    private Double saLary;//saLary-->sa_lary
    private Double salary;
    private Integer deptno;

    @TableField(exist = false)
    private String dname;
    @TableField(exist = false)
    private String modify;

    public Emp(int empno,String ename){
        this.empno=empno;
        this.ename=ename;
    }

    public String getModify() {
        return modify;
    }

    public Serializable getEmpno() {
        return empno;
    }
}
